//
//  DBUserTabelManager.m
//  ShowMe
//
//  Created by 123 on 2018/8/24.
//  Copyright © 2018年 nkl. All rights reserved.
//

#import "DBUserTabelManager.h"
#import "UserConfig.h"



@implementation DBUserTabelManager
//注册账号
+(void)registNewCountWith:(NSString *)phoneNumber passWord:(NSString *)passWord result:(DBCompleteBlock)complete{
    
    UserConfig * user = [[UserConfig alloc] init];
    [user setUsername:phoneNumber];
    [user setPassword:passWord];
    [user setMobilePhoneNumber:phoneNumber];
    [user signUpInBackgroundWithBlock:complete];
}
//登录账号
+(void)loginWithPhone:(NSString *)phoneNumber pwd:(NSString *)password result:(UserResultBlock)complete{
    
    [UserConfig loginWithUsernameInBackground:phoneNumber password:password block:complete];
}

@end
